/**
 * @author hugh
 * @time  2021-02-26 16:00
 * @title 网络请求-角色管理
 * @desc 后期分离优化
 *
 */
import { HttpService } from '@/utils/http'

export class Role {

  /**
   * 用户列表
   * */
  static list(data: any) {
    return HttpService.getInterceptors().postParams('/role/list', data, true);
  }
  /**
   * 分页
   * */
  static page(data: any) {
    return HttpService.getInterceptors().postParams('/role/page', data, true);
  }
  /**
   * 创建
   * */
  static create(data: any) {
    return HttpService.getInterceptors().postParams('/role/create', data, true);
  }
  /**
   * 更新
   * */
  static update(data: any) {
    return HttpService.getInterceptors().postParams('/role/update', data, true);
  }
  /**
   * 状态
   * */
  static updateStatus(data: any) {
    return HttpService.getInterceptors().postParams('/user/status-update', data, true);
  }
  /**
   * 删除
   * */
  static del(data: any) {
    return HttpService.getInterceptors().postParams('/role/delete', data, true);
  }
  /**
   * 批量删除
   * */
  static batchDel(data: any) {
    return HttpService.getInterceptors().postParams('/role/batch-delete', data, true);
  }
  /**
   * 批量删除
   * */
  static roleMenu(data: any) {
    return HttpService.getInterceptors().postParams('/role/batch-delete', data, true);
  }
  /**
   * 批量删除
   * */
  static roleMenuTree(data: any) {
    return HttpService.getInterceptors().postParams('/role/batch-delete', data, true);
  }
  /**
   * 批量删除
   * */
  static rolePermissionTree(data: any) {
    return HttpService.getInterceptors().postParams('/role/batch-delete', data, true);
  }
  /**
   * 批量删除
   * */
  static updatePermission(data: any) {
    return HttpService.getInterceptors().postParams('/role/batch-delete', data, true);
  }

        
}
